~ Move client bitfield to storage.

We localize bitfield mutation in storage module this way.

Also fix some warnings.
~ Fix some long standing warnings.