Add MoIP gateway

MoIP gateway implementation with @ntalbott suggested corrections (sorry for the new PR)