Some refactoring of Javascript code for automatic error handling like showing alerts and fixing authorization.
Added MIME type configuration for bootstrap fonts to work properly.