Fix web server, include data direction on webpage

Fixed a minor problem on the web server and included the data direction
of a pin on the webpage. Also improved the handling of analog inputs.