Implemented database version.
Other misc corrections
Corrected location of PLUGINS_PATH
Improved APIService.

Started to create DB (APIService) functionality.

Rewritten Plugin class.