Add milkcocoa.d.ts and milkcocoa-tests.ts

This was previously PR #3346. Had to close that and create this one because I hade made these changes in the wrong branch locally. Hope this isn't a problem.