Improved flags and logging

-Can now run both http and https (or neither!)
-Can log to file via flag
-Can server logfile over http