factor out rejectTransport
factor out prepareScript
factor out createSession
correct case for Content-Type header sent from client
make client set Accept header to application/json
allow requesting JavaScript bootstrapper without HTML by setting the Accept header appropriately
1.0.5