Use unminified version in demos for easier debugging
Fix recursively extending null objects
Add beforePan callback. Closes #48
build