Reconnect MPD connection on failure.
Removed position parameter from single parameter
convenience macros. Added deserialize method
for integer parameters.
Improved connection error handling.
Implemented several MPD playlist/queue methods.
Fixed calculation of socket timeout micro seconds.
Small refactorings:
* moved header field definitions to frame.c
* decouple frame from websockets object.
Formatted sources.
Moved send buffers to connection.
Moved async connection write handler to connection.
Added error callback for write errors.
Check if send buffer callback is null.
Use default connection write handler in echo server.
Don’t free send buffer in callback.
Use default connection write handler in MPD server.