Bug 976109 - Implement mozLoop.getLoopCharPref, r=mhammond

Re-creation of PR 26, ready to land.