Parses links and attaches click events for HTML5 push state