Revert "Fix the management method of session of Hibernate"

This reverts commit 784235bc95d79cc3f05da2fdf2f97611ff0966f9.

Conflicts:
	src/iotc/gui/NewDeviceDialog.java
	src/iotc/parser/CommandExpression.java
Fix VariableChecker
* Fix a issue of replacing variable
* Fix a issue of regex of term
Fix VariableChecker around calling DB
* Inhibit calling DB
Fix some issues on VariableChecker
* Add ResourceBundle
* Inhibit multiple notification
Merge pull request #11 from frah/DBFix

Fix some issues around Hibernate session