Idempotent dom ready

This makes DOM ready listener idempotent, which allows for Turbolinks/pjax compatibility. 

With this, all a Turbolinks user needs to do to make it work is expose Photobox and:

    $(document).bind('page:restore',window.Photobox.initOverlayDom)