Added permission service to app constructor

Signed-off-by: Michael 'Tekkla' Zorn <tekkla@tekkla.de>
Added experimental methods to register app related DI services and
factories.

Signed-off-by: Michael 'Tekkla' Zorn <tekkla@tekkla.de>
PSR Code rework done and missing comments added.

Signed-off-by: Michael 'Tekkla' Zorn <tekkla@tekkla.de>
(New) Method to create a prepared statement and parameter array out of
an array to be used in queries with IN().
(New) Method to debug sql by creating an interpolated sql string which
will be used as query.

Signed-off-by: Michael 'Tekkla' Zorn <tekkla@tekkla.de>
Added permission loading to user load() method.

Signed-off-by: Michael 'Tekkla' Zorn <tekkla@tekkla.de>
(New) Method to load permissions filtered by group idsfrom db.

Signed-off-by: Michael 'Tekkla' Zorn <tekkla@tekkla.de>
Added method to acces users permissions

Signed-off-by: Michael 'Tekkla' Zorn <tekkla@tekkla.de>
Fixed typo in core.sec.permission and added needed arguments to
core.sec.user servie

Signed-off-by: Michael 'Tekkla' Zorn <tekkla@tekkla.de>
Moved logic from debugSql() method to Core\Lib\Data\Database::debugSql()
and changed remaining method to work only as wrapper.

Signed-off-by: Michael 'Tekkla' Zorn <tekkla@tekkla.de>
(New) AppSec Core permission file

Signed-off-by: Michael 'Tekkla' Zorn <tekkla@tekkla.de>
Added permissions flag to use new permission file.

Signed-off-by: Michael 'Tekkla' Zorn <tekkla@tekkla.de>