Global Logic: Improve functions
Global Logic: Improve functions

* Add server status check. Informs user if connection is lost
* Add logged-in check. Redirects to login page if userId is undefined

ReactiveTeam/mydiabetes,ReactiveTeam/mydiabetes