pool,poolmanager: Factor WASS code out of partition and selection strategy code

Addresses code duplication between pool manager and migration module
code.

Target: trunk
Require-book: no
Require-notes: no
Acked-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
Patch: http://rb.dcache.org/r/5788/