Finished partial deploy (only when file has changed). Refactored some functionality to designdoc class.
Fixed promise return error