Merge pull request #5 from girliemac/coremob

Fixed a db bug. Also added popState and pushState to navigate back from the single photo view.
Fixed: the error causes by the last change on Safari
fixed: removing prev filtered canvas. modified: single view ui
IE10 fix (IE10 cannot access data-* by dataset property)