fix warnings
make onWindowResize function work without params
add onload-callback and use throws instead of innerHTML for errors.
use variable for automove instead of interval-reset and start automove after click.
fixed automove and added this functionality to touchevents
Merge remote-tracking branch 'M1cha/master'

- Resolved conflicts (from those cherry-picked commits of 'markembling/photosphere') and merged with latest commit from M1cha/photosphere@9faeb707dba70add53dd62e9c8f88db7b245509d