Improved the validation logic for adddisc and editdisc.

couter.js is unchanged
Fixed timing issues in dscourse.js
Fixed timing issues in add/edit disc.php
Fixed issues with Vheatmap and media boxes
Made LTI code role-aware.
Note that at least with Collab we will not be able to programmatically assign a role of TA to any user. We must choose Instructor|Student
-Added validation to editProfie.php
-Set length restrictions on feilds when adding a network
- fixed issue with undefined variable in discussion.php
Added conditional validation messages
Fixed bugs in validation for addDisc, editDisc
adding editdisc.php
- switched to a minified version of jquery validate
- fixed a bug in course add/remove logic in editDisc.php
And a fix for my fix. Sorry.
Some LTI fixes
Merge branches 'local' and 'master' into local

Conflicts:
	adddisc.php
	discussion.php

Tyring to do a merge
This commit contains a lot of changes relevant to the most recent goal for a dscourse release. Those changes are documented at: https://docs.google.com/a/virginia.edu/folder/d/0B4hpIvAfNpSFWDlRVXVvbHFiRUk/edit?docId=1BksCXF-E9KRKn0i8GNRo6BjUcKR7O6Zli4JlMUh61sc. Also I uncovered some dates bugs that have been fixed.
Pre-processor written, but largely untested. Also the code generation algorithm was made more robust.
Merge branch 'master' of https://github.com/dscourse/public
Added router.php and small changes to the preProcessor

router.php resolves course or discussion addresses based on an access code
- Actually added router.php
- added an interpretation of the preProcessor return to discussion.php
- added query string to login-redirects (this still needs to be interpreted in info.php and login.php)
- removed permission options from addcourse
Options now get loading in discussion.php.
Small changes made to data.php to reflect the relocation of course permission from the courses table to the options table.
Merge branches 'local' and 'master'