First implementation of all VM opcodes

Still completely untested and probably broken in any number of ways.