Added support for local message processing and some cleanups.
drwxr-xr-x - lincan