Support for nested filters in API-style filter format

First pass implementation and test coverage