ApplicationService: add a static function for API control

* This method is used to check API Control.It queries permissions
  from DB and tell the result to extension.

Conflicts:
	application/browser/application_service.cc
	application/browser/application_service.h