Wrap up the engine

Wrap up the engine with class Smie. Use stateful session instead of stateless. A rule file is added for test (just for test), the rule file for application will have different name.