Added login context and the account module.

Added login/app context auto detect with remote server support;
Refreshed folder structure and build script;