refactor the rake tasks; add the CI rake task