Use transactional memory for mem and regs.

Combine mem and regs into one transactional memory structure.
Implement an argument parser

Parse args and convert them to the appropriate forms for use.
Add transactional memory implementation.

Include the txmem file for use in the vm.