refactoring CGI code
finished refactoring CGI code
 added random draw and better time display for recent pledges'