moving code from HTTPConnection

Moving functionality from HTTPConnection to managing classes in order to
simplify code and make it easier to add features. Started adding the
filter functionality through json objects.