How would I add a new platform/board?

I recommend using PlatformIO 3.0 for the new development platforms. See example how to integrate new framework