Fix missing semicolon
Bug fixes & refactoring

Promise explicitly stores success flag rather than relying on result
being set as result may be null.
JSON.stringify() fixed. Removed pointless method from Scheduler &
modified MavHttp.HttpInterface to meet slightly different Enqueue
overload.