Add Apache license header to files.

In regards to [bug 945352)(https://bugzilla.mozilla.org/show_bug.cgi?id=945352).

Not sure if we should add the headers to the test files too? That's a lot of headers.