Simplify the defer/async API options.

* defer and async are only added to scripts in production mode.