moved cookie fuctionality into module
Unit tests added
fix file name