JSON RPC wrapper

Hope this is less intrusive than #11. Put stuff in `EPM::RPC`, excepting `lib/epm.rb` changes, of course.