Simplify error messages, and remove a needless conditional.

Add ability to flash messages with JavaScript
  To use:  flash($('#selector'), 'error', 'Message');
           param 1 => jQuery selector to prepend the error message.
           param 2 => log level [error, info, etc]
           param 3 => message to display

Add validation on the fly for anything that has class of formatted.
Merge branch 'master' of github.com:brandonblack/mongo-tools

Conflicts:
	Gemfile
	spec/spec_helper.rb
Get the insertion of flash messages safer.
Fix something that was already in spec/spec_helper.rb
Tidied up
Merge branch 'master' of github.com:brandonblack/mongo-tools
Merge pull request #48 from hoangelos/master

Add JSON validation on the fly capability