dweb 0.5: handlers, fixes, tidying.