Import source (http://daimi.au.dk/~barnie/RealLib/).
Merge remote-tracking branch 'github/master'
Change license to the permissive Apache 2.0 to allow wider usage.