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
Merge pull request #1 from demon/stream-wrapper-register-flags

Implement $flags parameter to stream_wrapper_register()