chore: add di to package.json and karma conf
feat($window): add $window class & mock, incorporate with httpBackend test