html for main page now from template
Simple POST methods added and html table handling.