refactored resource module to have synchronous loading
Out with the old state, in with the new