There is a JMX MBean available that provides programmatic access to the dm Server deployer. This is how the dm Server tools deploys applications to dm Server. Probably the easiest way to take a look at this MBean is to start dm Server and connect to it with JConsole.
Please note that whilst we make every effort not to make changes to this MBean, it isn't considered to be part of dm Server's API so it may change. Generally it will change very little, if at all, in fix releases, but may well change in major releases, e.g. this is certainly the case between dm Server 1.0.x and 2.0.