Dual license this code under the MIT and GPL licenses

Closes #9.