Merge pull request #150 from adamarla/master

Debugged and fixed update logic
an alternate calendar icon
Allow teachers to set deadlines for existing exams ...

... and not just during the exam building process
Changing the distribution scheme should auto-trigger redistribution

Its only natural to expect that if one changes the dist-scheme, then
the new scheme is what one wants to come into effect
Hide sandbox-tips only on explicit click
Minor edit
Enable / disable menu items as per JSON response

Any <a> with a data-update-on can be disabled-if or disabled-unless
some key in the JSON is set

The key used is specified in onclick.yml and factored in by the code
in core/karo.js.coffee
First set of self-aware menu items that know when to enable/disable themselves
Draft code for multipart/multi-stage forms ...

These are forms that go from step 1 to step 2 and so on ...
Renamed online column in Teacher to indie ( as in indie cinema )
teacher.online -> teacher.indie
[Big one]: Re-org'ing views/ for indie(pendent) and uni(versity) teachers

This is a stop-gap commit. More changes to follow
Re-org'ed teachers layout file to handle both the cases - indie and uni
minor trimming of .css
No need to decodeURIComponent when unjaxify-ing ....

The comment to be unjaxified comes as part of JSON - not URI.
Hence, it can be used as is

However, when a comment is submitted, it is sent as part of a URI.
And therefore, it must be encoded

In short, the two operations are largely - but not entirely - symmetrical
Merge branch 'master' into indie
New spinner incorporated

The new spinner - because its a JS library - allows greater control
over its behaviour. Moreover, it also allows us to set custom messages
and sub-messages to go with the spinner
Reorg'ed toolbox/grading

Examiners need to see all grading components whereas teachers and students
need to see a subset.

Hence, toolbox/grading now sorts components based on whether they appear
on the left or right side of the screen

Also, layout files for examiners and students re-written in the same
way as was done for teachers
Minor changes to the spinner
 Set #wide to span7