Fleshing out a little more internal structure.
Adding callable cmdline app.
Properly handles file uploads now.