Separated models and cleaned up server

Updated dist for client
Introduced better logging
updated routing client and server side