Fixed error on accessing not existing member var

Signed-off-by: Michael 'Tekkla' Zorn <tekkla@tekkla.de>
Removed abstract constructor due to needs by optimizing controller
constructing.

Signed-off-by: Michael 'Tekkla' Zorn <tekkla@tekkla.de>
Optimizations
Moved object init from factory to constructor.
Removed not needed methods by placing their functionality direct to the
place where the method call was done before.
Switched visibility of all public methods to protected and also made
them final to prevent override in child controller.
Reformat.
Added some comments.

Signed-off-by: Michael 'Tekkla' Zorn <tekkla@tekkla.de>
Missed that Error is not a child of ClassAbstract which means some
objects in handle() method had to be instantiated manually.

Signed-off-by: Michael 'Tekkla' Zorn <tekkla@tekkla.de>
Moved controller procession completly into controller object.

Signed-off-by: Michael 'Tekkla' Zorn <tekkla@tekkla.de>
Further constructor optimizations. Made constructor final because no
child needs a constructor.

Signed-off-by: Michael 'Tekkla' Zorn <tekkla@tekkla.de>
Added default protected routes array

Signed-off-by: Michael 'Tekkla' Zorn <tekkla@tekkla.de>
Simplified process() and ajax() methods

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

Signed-off-by: Michael 'Tekkla' Zorn <tekkla@tekkla.de>
Apps onBefore() and onAfter() events should not be called on ajax
requests. 

Signed-off-by: Michael 'Tekkla' Zorn <tekkla@tekkla.de>
Moved apps onBefore() and onAfter() content events from Controller to
Web object

Signed-off-by: Michael 'Tekkla' Zorn <tekkla@tekkla.de>
Fixed error from missting ajax->add() call

Signed-off-by: Michael 'Tekkla' Zorn <tekkla@tekkla.de>
Moved last invoker mothd into \Web\Framework\Lib::invokeMethod()
Deleted not needed invoker class file.
Updated all objects using invoker methods accordingly.

Signed-off-by: Michael 'Tekkla' Zorn <tekkla@tekkla.de>
Removed not needed import

Signed-off-by: Michael 'Tekkla' Zorn <tekkla@tekkla.de>
Fixed bug where read(ext) was overriding existing data and not extendig
it.

Signed-off-by: Michael 'Tekkla' Zorn <tekkla@tekkla.de>
Minor optimizations
Renamed log() to console() due to the fact that the var is logged in
browser console.
Added getCommandStack() which returns the ajax command stack. Useful
when debugging ajax requests.
Changed some comments.
Changed signature of html() method because html() is in jQuery always a
replacement.

Signed-off-by: Michael 'Tekkla' Zorn <tekkla@tekkla.de>
Moved ajax handling from Controller object into main Web object. 

Signed-off-by: Michael 'Tekkla' Zorn <tekkla@tekkla.de>
Added getRawPost() method to access the posted array which is stored
during process() now.
Minor getPost() signature and structure optimizations.

Signed-off-by: Michael 'Tekkla' Zorn <tekkla@tekkla.de>
Changed ajax handling
Moved ajax request handling to main Web object
Added ajax() method to redirect the run() returnvalue into an ajax html
command object.
Added method setAjaxTarget() to set the target of html command object
from within the apps controller.
Added $is_ajax property as flag the controller as ajax based. Only with
this flag set to true the setAjaxTarget() method is active.

Signed-off-by: Michael 'Tekkla' Zorn <tekkla@tekkla.de>
Changed comment and removed not needed property.

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