Added commandline support, fixing issue #6. Call with "php index.php main/home/index".