initial profiling code
module
some refactoring
move frame js
move zoom/drag
move last js
remove labels
add tree flattening code
add writemime output
remove some utility methods
Merge branch 'profile'