add support to env variables for demo server

$HOST and $PORT variables have a precedence before default 127.0.0.1 and 8080