Further work on v2 Ruby cartridge

A whole lot of stuff for Ruby v2 cartridge.

The existing pre-build and post-deploy are not implemented because their functionalities are now unnecessary.

threaddump is unimplemented; we need to discuss how it can work generally.