Cleanup.
Restructure application code, add rake support.