[#516] Adds JSON serialization for java swagger models (auth not working yet)