Added better logs and made simulation more flexible.
Added generic RMI support and basic RMI test code.
Added Sim1 and Sim2.