Initial functional commit of smux