template refactoring

minimal dependency check

builds raid
code cleanup

trim dead code
renamed device function drive_device()
cleaned templates

parameterized functions
resizes and pivots root and swap volumes