Added function is_shared()

Checks whether a given path is already shared.
Please do it as follows:
1. Create a dictionary "args"
2. Set `args = {'path': path}
3. Inside the various ifs, set `args['reshares'] = True`
4. Other if blocks ...
5. And only at the very end build the URL arguments with `urllib.urlencode(args)`