Application close

This will automatically close applications and all functionality at midnight of the application close date.
For instance if the date in the system is Dec 5, it would be closed already.

This does NOT address hiding routes, or buttons... as I'm not sure if a user should still be able to log in?

Fixes #593
Fixes #576 
Fixes #574
Fixes #539

cc @weerd