more explicit licensing

in order to stay as close as possible to the intent in the original, I took the BSD 2 clause license template from http://choosealicense.com and ruby license from http://www.ruby-lang.org/en/LICENSE.txt

I'd drop the ruby license in favor of a simple BSD or MIT license, see http://choosealicense.com.  But that is not for me to decide