Refactor
Refactoring the main functional codes at the UpdateServer.
Mainly, extracting all web/http-related codes to the http package, and keeping the rest main functions to core package.
also keeping the database package only for the common structs and database defines functions.