moved php base functions to own folder for organization, added cookie creation using fs