Fixes
Add dom_load for web client
Move TideSDK client code to separate file
Clean up and move more code