Make updates for compatibility for PHP 5.3

 - Handle parameter in debug_backtrace
 - Make Controller::connect to be public so it can be called from closure
 - Remove type hints for callable