Support all options of `open`. Closes GH-45.