Added Apache v2 license

Fixes #2.
Fixes #4.