Memory efficiency in handler application
Optimise some commonly-called functions
Add console.writeJSMemoryStats to just get JS VM heap size
More optimisations; move threat assessment code into ObjC