Added support for either using accept-wait headers, or continuous polling of the server
Adding angularjs support