knfs: restructure a bit

Separate cluster buildup from tasks.

Signed-off-by: Sage Weil <sage@inktank.com>