Implement filter and state query url

Figured out docId + localeId is unique enough to used as key.