Clean & refactoring proto files.
The definition encoder tool now use the new proto files.