fixed route function execution

Routes can now take an array for the function.
eg. $app->get('/', array($this, 'home'));