Add documentation

Hi,

Some documentation on the opauth sample code 
and 2 little modifications to better handling relative urls. 
(if your url is http://localhost/something/ then the current conf doesn't work)