Setting up elasticsearch
Added thumbnail code
Removed legacy middleware
Added initial search implementation
jshint fixes