Added some of the old api functions in, straight copied and pasted with minimal changes to get as close as possible to old api
Changed generated urls to be absolute urls