analysis2.js

new API and code for inbrowser analysis.  Record/replay must be implemented as part of an analysis.