Add admin, lots more refactoring.

Review Request #7505 — Created July 8, 2015 and discarded

Information

student-sonar
master

Reviewers

I apologize for the state of this change--there's no good way to break it up.

This change does a bunch of things:
- Add a (very WIP) admin page.
- Use express-restify-mongoose to make a REST API to do CRUD on our mongoose
schemas. This is enhanced a bit with some access control.
- Add a new group model.
- Refactor the front page to use the new APIs where possible. This obsoletes
the old lib/students.js.
- Tweak layout and styles to be more consistent and work better.

Navigated around and saw that everything worked as expected. Spent a bunch of
time making sure that layout was correct (previously some elements wouldn't
show the bottom @header-height of space when scrolling).

reviewbot
  1. Tool: Pyflakes
    Ignored Files:
        package.json
        lib/frontend/x-admin.js
        lib/frontend/x-student-view.js
        lib/api.js
        views/student-list.handlebars
        lib/frontend/main.js
        views/login.handlebars
        lib/frontend/components.js
        lib/schema.js
        css/style.less
        lib/students.js
    
    
    
    Tool: PEP8 Style Checker
    Ignored Files:
        package.json
        lib/frontend/x-admin.js
        lib/frontend/x-student-view.js
        lib/api.js
        views/student-list.handlebars
        lib/frontend/main.js
        views/login.handlebars
        lib/frontend/components.js
        lib/schema.js
        css/style.less
        lib/students.js
    
    
  2. 
      
david
Review request changed
Status:
Discarded