lots of sid changes
lots of sid changes

sorry for the massive commit.

* added helper functions to augment returned objects with sid as needed.
* cookie setters now use promises
* allow for short SIDs
* allow joinWithInvite to use sid

pol-is/polisServer,pol-is/polisServer,pol-is/polisServer