split out mako tests
move mako test templates into dedicated directory
add early break for extension/mimetype matching