allow facades to be mocked without application.
tweak function scope.
Merge branch '4.0' of github.com:laravel/framework into 4.0