bz00000 Adding maven, proto buffers and some refactoring