Refactored swag.ts to use promises to get data from server.
See http://notebookheavy.com/2012/09/05/knockout-view-models-jquery-deferreds/