add JSON support for /v1/endpoints (fixes mesosphere/marathon#28)

new to scala, let me know if there's a better way to do this

@guenter