smbc_open: add open flags support just like fopen
smbclient_write: make write length optional just like fwrite

No need to pass a third argument to the function with the length of
string to write, when we already know the length of the string.
README: convert to Markdown, add function descriptions