Added HTTP request handler (TODO: not working yet, finish)