Adds router params support to controllers. Fixes bug when links are used for an onclick but router tries to handle them also.