Update API to support after load usage.

Replace API endpoint (window.sa) on payload load.
Implement a more robust API method declaration system.
Implement new API methods and signatures.
Implement Session Create/Connect on a single command.
Implement auto sending of PageViews if no other actions are created