handle mixed case URLs

 On branch master

	modified:   controllers/gallery.coffee
Add JavaScript and Mixpanel

 On branch master

	modified:   themes/pinfinity/templates/gallery/index.html
	modified:   themes/pinfinity/templates/gallery/preview.html
	modified:   themes/pinfinity/templates/layouts/base.html