Refactored to use less granular modules.
Added facebook shim, and fixed angular-mocks shim.