Merge pull request #200 from johncrossman/master

CYB-289, restart Apache from deploy script by 'touch restart.txt'
CYB-329 Gallery Performance: Don't retrieve the vimeo thumbnail every time.

* Created a new worker that does the processing for urls submitted.
* no specs yet, to be written for followup PR

https://jira.ets.berkeley.edu/jira/browse/CYB-329
Merge pull request #201 from coyote/thumbnails_on_media_url

CYB-329 Gallery Performance - cache thumbnail URL
CYB-333, deploy script now has: bundle || { ... exit 1 }
CYB-334 Select all needed fields from MediaUrl in GalleryController#index

* adding thumbnail_url to select list

https://jira.ets.berkeley.edu/jira/browse/CYB-334
Merge pull request #203 from coyote/select_needed_attributes_on_gallery_controller

CYB-334 Select all needed fields from MediaUrl in GalleryController#index
CYB-333, deploy script: bundle --retry=5 then fail
Merge pull request #202 from johncrossman/CYB-289

CYB-333, deploy script now has: bundle || { ... exit 1 }
CYB-335 script to populate empty vimeo thumbnail_url fields

* use
    thor clean:vimeo

https://jira.ets.berkeley.edu/jira/browse/CYB-335
Merge pull request #204 from coyote/clean_vimeo_data

CYB-335 script to populate empty vimeo thumbnail_url fields
CYB-324 - Gallery Performance: refactor API to return results faster

https://jira.ets.berkeley.edu/jira/browse/CYB-324
CYB-346 - Gallery Performance: Refactor front-end for new API changes

https://jira.ets.berkeley.edu/jira/browse/CYB-346
CYB-346 - Gallery Performance - fix tests
https://jira.ets.berkeley.edu/jira/browse/CYB-346
Merge pull request #206 from christianv/CYB-346

CYB-346 - Gallery Performance: Refactor front-end for new API changes
CYB-347 Select image fields for Gallery API

https://jira.ets.berkeley.edu/jira/browse/CYB-347
Merge pull request #208 from coyote/sql_get_gallery_data

CYB-347 Select image fields for Gallery API
CYB-348 author_canvas_user_id & created_at should be integers instead of strings

  * numerizes those fields in comments
https://jira.ets.berkeley.edu/jira/browse/CYB-348
Merge pull request #209 from coyote/numerize_comment_fields

CYB-348 author_canvas_user_id & created_at should be integers instead of strings
CYB-352 Return DB connections to the pool after done with using raw SQL

 * use a block yielding to the execution statement so that the connection is only used
   within said block
 * decrease sidekiq concurrency, so fewer connections are used at once.

https://jira.ets.berkeley.edu/jira/browse/CYB-352
CYB-357 - Comments not displaying in Gallery detail view

https://jira.ets.berkeley.edu/jira/browse/CYB-357