Adding cookie auth section

Closes #566