Added Apache v2 license

Fixes #2.