[INTERNAL] Device API: added support to detect PhantomJS

PhantomJS behaves more like a Safari than a Chrome and therefore needs
to be detected properly by the Device API. Added also an additional flag
to identify the PhantomJS Safari browser.

Change-Id: Ia919f5bafb2131ced82dee807c4187201535d3d7
Merge "[INTERNAL] Device API: added support to detect PhantomJS"