Complete rewrite for version 3.0.0. Now uses Maven for building and
dependency management.