Rendering templates via node again

Allows better control about what the browser sees and where.
Separated navbar to partial
Fixed paths
Proper dependency injection
Refactored and fixed chart directive
Fixed routes
Added koa-compress
Minor fixes
Moved files
Copy pasted api tests
Refactoring