app: implement a basic router and .api/.apidocs handlers.