Use pushState if HTML5 history is supported

Progressive enhancement. If history is not supported, regular links will
work just fine.
Implemented partial module for thumbnails

Applied to album and photo view.
Added responsiveness
Code cleanup

Removed unnecessary comments and logs.