Move source code into subdirectories.

I thought it was a bit cleaner to partition the code into subdirectories. Any thoughts ?