Added ability to specify API endpoints by URL rather than host/protocol/prefix etc.
Also added ability to specify faye endpoint in the client.