create app_HOME dir inside app for use as a writable HOME folder

This is related on #236. I rebased @eighthave's patch.