Tests and refactor.
Merge remote-tracking branch 'origin/master'

Conflicts:
	Gruntfile.js
	models/search.js