Log error when using invalid resources.
Move AnimationLoader to own file.
Use browserify to build a single js file.
Move code to lib folder like normal npm module.
Ignore generated splate file.