add setting model api
add setting model api
add new package - middleware
add meta.tmpl template