Implement get_state and set_state in the Json API
Add get_playlist JSON api
Correctly use refcouting with jansson
Fix unix linefeed...