Adapts http dao usage to sql dao usage

Added http dao factory and refactored http method and http handler
classes.