Adding specs for search controller.
Adding tests for policies
Moving edit form javascript to asset pipeline.