Fix permissions on app_home when creating user

Fixes #1
Better error mesasge if we fail to initialize app
Pass on the base to the module. Fixes #2