Added handlers, routes and views. TODO: make generate table programmatic