Started refactoring SearchController and the photo extraction services. Did a bunch of test stuff.
Finished common-colour extraction spec. Put the initial creation logic into its own file, for use in tests as well.