Add permalink to media details title

Also, move annotation section to the top of the media details sidebar