Remove dependency on jquery-cookie plugin

Replace plugin with simpler get and set methods.
Merge pull request #530 from djfarrelly/master

Remove dependency on jquery-cookie plugin