changed to properly test registering app at resource servers
added dotcloud detection and congfig