Addapt implementations to new way to use MediaServerConfig

Change-Id: I252fe0cd1be813cfec8e893eb8d4cef5b2ed53ac
HttpServer: Add implementations to use HttpServer

Change-Id: Ia7c8ed65afbb1d79fab7ab1447c777dc476d6406
Add pre-commit hook and format the code

Change-Id: I15e7801b5dae8849a24535e788b93381098c1dc7