Refactored to support rfc via mina codec filters. Cleaned up and simplified codebase. Some debugging still left on encode-side.