Update Controller.php

I saw JSON objects submitted has backslash before double quotes, so json_decode fail to parse data. After investigating found that its all related to  magic quotes... solution was to add that check before decoding..

if(get_magic_quotes_gpc()){
    $userParams = stripslashes($_POST['user']);
} else {
    $userParams = $_POST['user'];
}
Merge pull request #2 from icancodetoo/patch-1

Update Controller.php