Restructure app logic, add external libs locally & style templates

Add new logic to the app: organize views, and router;
Add all CDN libraries locally in js/libs/;
Add basic styles for main view and modify templates accordingly;