Updated to latest settings code

Just bringing it up to date
Added Windows8 and Win Phone RT as well.