Add parsing support for filters

This does not yet invoke the filters

BUG=
R=rafaelw@chromium.org

Review URL: https://codereview.appspot.com/13010044