Added functionality that creates session ids as json or adds it to an NSURL