refactored apidoc extensions completely.

separated guide and apidoc, better maintainability
rest WIP
Merge commit 'd3ff343e5ee02a14dd17d6cf947aa7f52857474a' into feature-restapi

Conflicts:
	framework/helpers/BaseArrayHelper.php
Merge commit '24e086deaf6336706624e77cc0f63a7062280821' into feature-restapi
rest WIP
Merge commit 'ec05c0eaf7060d13a23828c0c2e64137dde4bd61' into feature-restapi
Merge commit '4891aa79bf80d5f6f1a50d71e43b3eb49cc1fe85' into feature-restapi
rest api WIP
test break fix.
Fixed incorrect error handling.
Support for other auth types.
short array syntax
short echo tags
@param, @var, @property and @return must declare types as boolean, integer, string, array or null
code style. operator IF
updated error code.
code style. FOREACH
code style. FOR
code style. WHILE
returned back formatting language files