Made ajax functions to reduce code
Changed login form
Moved route data to their corresponding files and moved server functions
to root
Make server multi-threaded and catch internal errors