[wip] introduce POJOs API in core and move proto stuff to dedicated module

This compiles but is incomplete and certainly does not pass any test. This is not for merging but to give an opportunity to review where I am heading to. What's missing is:
 - proper serialisation of JournalEntry to/from byte[]
 - conversion between POJOs and protobuf objects

This does not seem too daunting a task...