Add basic inbound rules creation and reading; minor fixes