Application inactivity timer implemented

- When application is in background for a specified time the database will be closed and all pages popped from the page stack
- This closes #016