fix Interface code displayed instead of controllers'

1) Controller's name is a usually a substring of interface's name hence the old check was error-prone.

This closes ariatemplates/usermanual#33

2) Added a check to display link 'open in new tab' only if inside iframe.