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
Support both API versions

Temp fix to handle both API versions,
while deploying the updated versions of all
necessary components.
Merge remote-tracking branch 'origin/refactor_actions_queue'

* origin/refactor_actions_queue:
  Support both API versions
  Implement auto sending of PageViews if no other actions are created
  Update API to support after load usage