[FE-34] Check for localhost when setting cookie and add secure flag on https
[FE-34] Check for localhost when setting cookie and add secure flag on https

hmrc/assets-frontend,xnejp03/assets-frontend,hmrc/assets-frontend,hmrc/assets-frontend,xnejp03/assets-frontend,tmikus/assets-frontend,tmikus/assets-frontend,tmikus/assets-frontend,xnejp03/assets-frontend