Revert "Revert "Merge branch 'master' of https://github.com/ciprif/MoSync into MoSyncLib""

This reverts commit 396f42320a946ba3610e2b7ee1afb27950fab6a7.
Merge branch 'MoSyncLib' of https://github.com/mattiasbybro/MoSync into library
Library: Application exits when activity finishes.