Adding profiles support to the JSON-RPC and to the default web server.

There is a lack of profiles support in the JSON-RPC API.
I'm using XBMC remote (through wifi) to control XBMC.
However, when I want to switch a profile I have two options:
1.	To go to the profiles menu and choose another profile.
2.	To go to Login screen and select another one.
Option 1 is too cumbersome and it is impossible to use option 2 since when I reach the Login screen I lose the network connection (since the web server is shutdown).
The most elegant way I could think on is to have a profiles menu on the remote but in order for this to work, XBMC JSON-RPC must first support profiles functionality.
In the first Check-in I introduce two JSON-RPC functions, one to retrieve a list of available profiles and one for selecting one.
In the second Check-in I modified the default XBMC web server to use the new JSON-RPC profiles.
If you'll approve this feature, I hope someone will add profiles support to the XBMC remote. 
And of course the wiki will need to be updated.