GitHub #147: Get a different OSC port if the requested one is not available

Also starting work on nicer formatting of log messages with text tags and different
log levels.