Setting environment in CLI mode fixed.
Moved cli.php to bin, _loader.php to application. Fixed double including of loader.