Minor: some reorganization and formatting

* Move UI module to lib/ (doesn't belong in interior).
* Expand tests for TeleportPlatform class.