Add device detection to mobile ResourceLoader requests

Per discussion at wikitech-l

Change-Id: Iab4615a735fd756f1fe6ede0e3340ec47428c01a