Generic flowtable implementation.

Addressed review comments.