Add restful (almost) authentication