added optional dispatch-fn to bridge. commands are scanned first for a match and if none are found the dispatch-fn is invoked with the received command