add new_api field, class declaration, import api - and some $END$ fix

[ADD] new api import (alias : models fields api)
[ADD] add new api class declaration
[IMP] rename existing template class >= 7 to = 7
[FIX] Add $END$ for templates and replace existing $end$ by $END$