added rules. added filesystem support. changed api interfaces. refactored local storage. added field model extension.
added rule check funcs
finish rule
fix merge