Allow realm to be passed in URI and Body. Fix #139.