Complete rewrite of the library. New API and features. Licensed under Apache Licence 2.0.