Fixed email regexp in Api.js to match the regexp in ApiSpec->verify_argument_of_type_email(), updated QUnit test
Fixed JSHint errors
Merge pull request #1309 from blackshadowshade/1305_email_regexp

Fixed email regexp to allow periods before the @ sign