add support for STORE FLAGS

zero out permanentflags and flags before processing the server response
to avoid memory leak

pass keyword flags found in FETCH responses to callback