Fix sharing modal and node leak

The Share option on the "actions" sidebar menu stopped working because it needed bootstrap-model which I added back.

But I also noticed on the chrome dev tools that the javascript to keep it from closing on an ajax refresh was also creating new copies of the modal dialog over and over without removing the old ones, creating a small leak, so I did a small hack to fix it since I'm not sure where this is coming from, (but a wild guess is that this has something to do with ajax being async and stuff happening in the incorrect order)

![share-leak](https://f.cloud.github.com/assets/1369748/1627997/42cde81a-5701-11e3-8a45-4fab701d46a8.png)