Refactor course search into course.py to be reuseable
Make a pass at cleaning up the search code
Default to popularity on sort_mode=friends if no current user
Add the /api/v1/search/courses endpoint
Refactor FlaskTestCase to extract a FixturesTestCase
Add some tests for Course.search
Move TODO comment
Add an API test for /api/v1/search/courses