This moves some of the matinfo functionality into a library which will soon have an embedded web server.