Add Apache 2.0 license and headers, fixes #1

License code under Apache 2.0, brought to our attention by #1