Support setting the slave mode
Merge pull request #95 from wleese/master

Support setting the slave mode