added rules. added filesystem support. changed api interfaces. refactored local storage. added field model extension.