Added global state api, grunt file and package.json