added cookies to debug section
added headers to REST module debug too
added more debug notices to REST