Added requests handling and structure change

can be shorter like:
```php
     $controller = $this->getControllerName($input);
     if (class_exists($controller)) {
         $obj = new $controller;
         $action = $this->getActionName($input);
         if (method_exists($obj, $action)) {
             $obj->$action();
         }
     }

    $this->error->errorAction();
   
```