Inactive patterns now have not {uri}. Added first/last inactive generation

Backward fully compatible. Changed template for using "#" instead of "{uri}", that is more clear. Now behavior of pagination is fully configurable.

Suggest to declare deprecation of using "{uri}" in inactive links and remove support of them in 1.7. (But it's just suggestion).