Clickfs: Move read-handler preparation into its own function.

A version of this was done at Meraki.
Clickfs: Simplify flag handling, kill dead flags.
Clickfs: Add read-parameter support by opening with O_RDWR.

Again, original version from Meraki.