make API_ENDPOINT configurable via POPCORN_API env variable,

run with env POPCORN_API=http://localhost:5000 nw . --debug to test

Signed-off-by: Niv Sardi <xaiki@evilgiggle.com>