restructure app a bit, load routes in index, move controller logic into controllers