Changed way the queries are handled - module accepts map<string,string> on each request. Added error catching and 'error.html'.