Linking front-end (selects declaration on F3)

This is dependent to (and has merged into it) #1674 

Review @devoncarew