Integrated software raid

(cherry picked from commit d86083077ea4e36baa07ee97da62df9c227b1c9a)
Merge pull request #290 from vuntz/swraid-roxy

Backport of software raid to roxy