added topics and users controllers (plus basic views), and cleaned up some code