fixed build to support replaces in inserts
updated build to respect package file indention
added test suite

As discussed in https://github.com/janpaepke/ScrollMagic/issues/110