tools.js and refactoring

1. Add tools.js and move extended 3D scene funcitonality into it.
2. Substitude sub->subVectors to fit the changes of the latest three.js
changes