hook/hooktest: new package; charmbits/httprelation: some tests

One step on the path to creating a decent testing story for Go charms.