Moving main code into a single slot.

Fixing issue https://github.com/wso2/private-paas/issues/22