Fixed drag & drop MID bug, started replacing ajax URLs with mailpile.api.endpoint values
Created a JS helpers folder with a helper func