Various fixes

1. Fix on authentication management and notes menu artifacts visibility:
negate DELETE and ADD new note page is of already loaded link or the
link is not of the CURRENT user authenticated.
2. Javascript conditional injection, based on on the modes of the 3D
view.