Add doctest suite to cabal file

Also fixes Jwe doc example and README wrt API changes.