Changed some function return JSON

William requested that 'result' be changed to 'success' and True/False
to true/false. Makes it easier to deal with in javascript.