Moved from partial niceness implementation to one with shares and caps.
Added setshelftemp functions. Also added cleanup and bugfixes.
Fixed bfdrc.