Added functionality for form submitting; move static files into public dir.