allow facades to be mocked without application.
Merge branch '4.0'