ModelProxy recive now a route

Changed the model generator to recive a route  instead of a path.
Merge remote-tracking branch 'smaug1985/master' into add_routeName_instead_of_route
add feature to use routerName instead of path
thanks to smaug1985, i have used his commits and make some fixes to backward compatibility