added custom REST stuff, including current user status in JSON output etc