Bower package, exponential backoff and module loading

These commits add:
- Bower package file (still needs publishing to bower)
- Exponential backoff (don't spam server with connect requests if it constantly fails to connect)
- Add support for CommonJS and AMD module loading (doesn't break global loading)
- Fix parameter to connect call