fix the dev_setup code

I had previously copied over some code that I was using to
add read/write remotes, but I had never tested it and not
surprisingly it did not work.

This code represents the results of actually going through and making
sure that the code worked.
Merge pull request #10 from bodepd/dev_setup

fix the dev_setup code