Version 2 of the old forked rubygem, completely redone/refactored.