Code review for Ecometrix MVP

Hi Mike,

Here's a pull request covering the site, app, and API as we discussed this morning. I should also have the corresponding sequence diagram ready for our meeting tomorrow or Wednesday for you to review as well. I think the diagram can be reviewed separately, but I'll post a draft on the repo.

Just to clarify, here is an outline of the API and app interaction, which provides sessions management and content update services:

### Session Management
The session management is handled by the `userlist` and `sessions` collections on our server side database. Session management is initiated by the app by `app_login.js`, which uses the following calls to the `login` router:
 * **adduser:** When the new user form is filled, this POST request to `userlist` to insert a new user and update the corresponding session in `sessions`. Note that sessions are created automatically by MongoStore, and we are also appending `username`, `isLogged` (the number of times user has logged in), and `token` (the md5 hash of the current time and username).
 * **verify** This is a GET request from `userlist` to service the existing user login scenario. The router receives the request and checks the username and password from the `userlist` collection. Upon verification, we update the `sessions` collection with a new token that was generated at the time of the request. 
 * **resumeSession** This is a GET request from `sessions` to determine whether a session matching the request's session username exists. The read query is handled by MongoStore, so we just use the wrapper to check for an existing username via `req.sessions.username`.

### Content Update
Eventually this will include progress updates as well. All content updates are initiated by `app.js` and directed to the `posts` router by requesting the **posts/index** for each batch of questions, where "index" determines which batch of questions to return. The `posts` router is currently storing all of our questions in JSON, although we may start storing the JSON content in another location, such as `Firebase io` or another location that we discussed.

### Next steps
Sorry for the long description, but let me know if it can be improved in any way. Here are some next immediate steps after this code review:
 * Before we reach our "triage-able" MVP, I believe the only thing left to add is meaningful content. I will send you the GoogleDoc soon. 
 * I also think that the description and diagram (which I will post tomorrow or Wednesday) may be useful to explain the backend service related aspects for any upcoming MVP demos. I will work on this and it can be reviewed separately.
<a href='#crh-start'></a><a href='#crh-data-%7B%22processed%22%3A%20%5B%22https%3A//github.com/LukeSwart/ecometrix_site-api/pull/1%23discussion_r14466571%22%5D%2C%20%22comments%22%3A%20%7B%22Pull%2011de5d0bb3b267efe0a39c88eecadfcc858007b2%20public/app/app.html%2031%22%3A%20%7B%22html_url%22%3A%20%22https%3A//github.com/LukeSwart/ecometrix_site-api/pull/1%23discussion_r14466571%22%2C%20%22comments%22%3A%20%5B%7B%22body%22%3A%20%22Potentially%20one%20too%20many%20%5C%22a%5C%22s%20at%20the%20end%20of%20EcoScore%200%22%2C%20%22created_at%22%3A%20%222014-07-02T16%3A15%3A15Z%22%2C%20%22user%22%3A%20%7B%22avatar_url%22%3A%20%22https%3A//avatars.githubusercontent.com/u/3292701%3F%22%2C%20%22html_url%22%3A%20%22https%3A//github.com/mtshomsky%22%7D%7D%5D%2C%20%22title%22%3A%20%22File%3A%20public/app/app.html%3AL1-139%22%7D%7D%7D'></a>
<a href='https://www.codereviewhub.com/'><img src='http://www.codereviewhub.com/site/github-bar.png' height=40></a>
- [ ] <a href='#crh-comment-Pull 11de5d0bb3b267efe0a39c88eecadfcc858007b2 public/app/app.html 31'></a> <img src='http://www.codereviewhub.com/site/github-remaining.png' height=16 width=60>&nbsp;<b><a href='https://github.com/LukeSwart/ecometrix_site-api/pull/1#discussion_r14466571'>File: public/app/app.html:L1-139</a></b>
- <a href='https://github.com/mtshomsky'><img border=0 src='https://avatars.githubusercontent.com/u/3292701?size=16' height=16 width=16'></a> Potentially one too many "a"s at the end of EcoScore 0


<a href='https://www.codereviewhub.com/LukeSwart/ecometrix_site-api/pull/1?mark_as_completed=1'><img src='http://www.codereviewhub.com/site/github-mark-as-completed.png' height=26></a>&nbsp;<a href='https://www.codereviewhub.com/LukeSwart/ecometrix_site-api/pull/1?approve=1'><img src='http://www.codereviewhub.com/site/github-approve.png' height=26></a>&nbsp;<a href='https://github.com/LukeSwart/ecometrix_site-api/pull/1'><img src='http://www.codereviewhub.com/site/github-refresh.png' height=26></a>
<a href='#crh-end'></a>
Non-issue: I like JQuery a lot.  We may benefit from an Ember or Angular refactor.