Added JSAV.utils.extend function to create 'subclasses', and refactored tree.js to work with it.
Merge pull request #118 from X455u/inherit

Added inheritance