Introduces TransactionCommitProcess as an interface

Splits TransactionRepresentationCommitProcess in two processes,
 one is appending to log, the other applying to store. That
 can be used by SlaveTransactionCommitProcess to apply incoming
 transactions
Revert Master.commitSingleResourceTransasction to return long
 instead of void.
Some more compilation fixes