Added parsing for server commands, and moved it into api.
Added malloc warning for decode_json function.
Merge pull request #71 from NosotrosNueces/commands

Added parsing for server commands, and moved it into api.