Added reverse url generating functionality in Router, other tiny improvements