Adds public json api for Alaveteli and Ruby version

See #834