Add API_ENDPOINT & change STATE STORE to use relative path + root
Make app worker on mac (just puts pin state)