Fast deploy

Some re-factoring done on the mobile deployment. The API for the deployment remained the same but the structures used by the Mobile Deploy are a little bit more structured now.

The deployment flow is not independent of the deployment way the user choose, which makes it more scable and easy to maintain.
My best guess is that the client is closing the connection, because the error that I see usually comes when the Chrome Dev Tool app is not open. So it is possible that this is the reason.