SecurityService: add permission service class

* This class is used to receive API Contrlo from extension.
  It queries permissions from DB and tell the result to extension.
[Extensions] Add API for CheckAPIAccessControl

This API is for extension developer. The API need to be called in the
implementation of each exported API in C or C++ code.