Moved main.php to peg-custom

Part 7 of cleaning up src.
Rewrote settings.php

Now settings is just a wrapper for a table of options. Config parsing
and such will be handled by the frontend from now on.
Removed all references to the CLI from Application.php