Add syslog handlers to logging configuration.
Refactor mapid script into units.
Add parameter for listening port.