Bugfixing:
1. Sending correct Content-Type header for POST/PUT request
2. Fixed result() callback for commands which incorrectly returned the entire WebSocket response
3. result() method now returns query object, so the fail() callback could be chained to it