Add workaround for snapins loading to be able to start the app by the base path.
- Make the login by WTF and flask-login (need somes changes to work properly)