MDL-41289 getuserpref: Ajax method to get user preference

Creating /lib/ajax/getuserpref.php to get user preference and defining a new method M.util.get_user_preference in /lib/javascript-static.js