Applying scripting

* Initial support to import code snippets from Animatron (currently only `onclick` handler for draft purposes).
* Fixes for several errors in sandbox with importing sprites
* Update previously outdated collisions module to new module with pivot & registration point
* Move type-checking and value-checking into `anm.js`, global namespace