Server is now a object
Added JSON support
Updated client