generate gemspec
add railtie to load rake task
move code from task to lib