Fixed bug in target="_blank" link handling

Also added logic to force off edit styles for external access unless the
request is identified as an iframe request