add rake task for importing csv

I rebased master onto the rake_task branch. This branch should be merged unless there's more work that needs to be done.