First form of logic

added some interaction with the user and between the scripts
GetState needs the IDE key, also dispatch request for setState correctly
idekey is explicitly not an secure setting
Added Cookie methods and a dummy setState method/handler
Implemented getState logic
Implemented setState

and this makes this extension do something usefull! Finally :)