fix requires in main file and tests
set correct content type on GET /schema, improve tests for it
infer resource id and title from the path