Add the ability to add the `defer` or `async` attributes to scripts.

@ozten, could you review this?

Helpers for mozilla/browserid#3454