added ant build script (requires ant and uglifyjs);

added version property;
added debug comment wrappers for non-production code;
refactored production code slightly for better minification;