Implement $flags parameter to stream_wrapper_register()

Only takes one flag, STREAM_IS_URL, which controls whether a
user stream is local or remote.

Closes #1108