Use bundler gem management tasks.
Fix some spec deprecations.