Provides a bypass and setup for a cookie for storing state only

I have removed all the possible options for short codes aside from state. 

I am using the php serializer for now but we will likely need to build our own serializer so it can work with js as well