Added error handling

-Added some error handling for connection unavailable and for some
server error
TODO: improve the display and add more error types
-Changed the bootstrap theme to a flat design
Moved the error handling to a separate module

-Made the error handling a separated module to control errors globally
TODO: better connection check on app startup and reconnection check on
connection lost