Clean-up

Added a get-current-date function to return the date in an HTTP
protocol-friendly format and did some general comment cleaning.