Initial implementation of Main servlet.