Support AMD loading

Support AMD loading using something like the current pattern from Knockout itself.