Added defs file
Cleanup, split platform.js out now that 0.4.0 is out, which isn't broken