Added support for module systems

Adding this allows Swipe to be included with RequireJS and other CommonJS implementations. It still adds Swipe as a global if there is no module system.