Compatibility with AMD and .noconflict()

If an AMD "define" is detected, registers toggles as an AMD module.
Also, made it so the plugin works even when there is no $ in the global
namespace (in case of jQuery.noconflict)