Fixed Opera detection, added Safari detection.

Note: Safari detection is untested.