Refactor the empty message criteria into its own method.

Removes plenty of duplication in the code
Simplify SearchController#results

Give names to the various things being searched for and move them out
into their own methods. Also add scopes to give names to things being
queried out of the models.
Render notes using RedCloth without formatize

Removes the outdated bluecloth dependency
Merge pull request #173 from zoombody/remove_formatize

Render notes using RedCloth without formatize
Fix off-by-one error in pie chart data

A pie chart with exactly 10 contexts would show up with 9 contexts +
(other).
Fix grammar in pie chart legend
Merge pull request #174 from kytrinyx/pie-chart-bug

Fix off-by-one error in pie chart data
initial changes to add an option to select either context or project as grouping of todos on home or tag page

* new menu item in view menu
* js to toggle view
* store setting in cookie to keep de choice of view persistent
* refactor index and tag page of todos to look more alike
* refactor context and project partials to look more alike
do a big refactor of rendering collections of todos for home page, tag page, project page, context page
remove option to show empty containers and start fixing failing cucumber scenarios
get all scenario's running again, first pass.
rebase to master
refactor done todos view and tests
hide group by project from menu to safely merge refactorings with master
remove leftover from merge failure
Merge remote-tracking branch 'upstream/master'