java_gen: added ability to define metadata for enums

Reviewer: @yotamhc @vaterlaus

This PR adds the possibility of adding additional metadata (additional properties) to enums. This enables us to reproduce some of the old openflowj's convenience magic.