Fixed NPE
updated logging statements around gateway channel pipelines
added config for in-memory portal