Modernize gem and dependencies

Moved to a Bundler-style gem setup and migrated
from a customized test/unit stack to the latest
RSpec.
Remove trailing whitespace on lines