More progress on js refactor

* added database.yml to .gitignore
* changed cells_controller to call image from assets
* removed extraneous js links from application.html.erb
* lots of shifting around of code in main js file, especially to group like functions into objects