Add type field to Transaction.
Make reconfig logic more clear.
Change from LEAVE to REMOVE on reconfig.
Some comments and cleanup
Merge pull request #127 from EasonLiao/cop2log

Append COP to log and some refactory on reconfig logic.