Hacky implementations of basic REST endpoints

This commit adds a JRuby singleton instance and some hacky
implementations of all of the basic endpoints that are
required to perform a simple agent run.