A hookable AMD module resolution implementation.