Remove some dead code.
Add functional spec for new apps.