Add initial port of the openwire generator code.
Fix some hardcoded values.
Bring in initial stripped down openwire implementation.