beginning to move dependencies into loading.

Currently dependencies are handled by the require. Should be handled by
the ready function.