Added PortCommandRegistry. Added compiler pass to extract port commands by tag. Added console command for Erlang port.
Added error processing on Erlang side.