Updated Fixed JSON, Client and compilation issues.

The switch statements on strings haven't been working on my end so I
changed
them to if/elseifs, which should now work everywhere.

I removed the package structure because it was a pain to edit every
time.

The JSON wasn't formatted properly on the server, which is now fixed.