Add a license

There was no license file allowing use or distribution of the code.
Apache License v2 seems like a sensible default.