[WIP] Rewrite everything in Swift

Partly just to write an app in Swift, but also to exercise the Swift libraries I've been working on.