Fix module definition and load sequencing

angular-cache 2.3.3 refuses to load with angular 1.2.16 the way modules are accessed has been changed since then.