Moved `opts` function into a seperate file.

Clean up the API a bit, so that index.js consolidates all of the bits of Steal node.