Update gem:create task for Rubygems 2.x.
Allow constructor to take an optional hash of attributes.
Updated require statements in test files.