Escape search queries to allow special characters

Also adds some basic feature specs for output search.
Remove sqlite dependency
Allow any attribute for DIVs in ckeditor
Merge remote-tracking branch 'origin/master' into rails4

Conflicts:
	Gemfile.lock
	app/assets/javascripts/ckeditor/custom-configs.js.coffee
Allow any attribute for div