rewrote routing and http handling in liberator. todo: eliminate repetition through higher order functions; create config file