Bring in Profiles support from mr0

Change-Id: Icae838838ce2c34aec22c50f166b957205db8394
Settings: Forward port missing Profiles related changes

Change-Id: I3cda345208171c5b45daf2d5d263017bc538bd48
Settings: Add Utility function

Change-Id: Ic5316765d3db48351a9feaa9b3cce286d256071e

Conflicts:
	res/xml/settings_headers.xml
Fixed previous commit and moved profiles