Added resource for retrieving a JSON representation of the current printer state (basically most of what's available on socket.io)

Endpoint is <baseurl>/ajax/state