LILY-339: Made creation of draft async. Also refactored inbox.js