C++11 range-based for loops and minor cleanup

This pull request adds C++11 for loops instead of indexed loops.
Also there are some minor changes, to utilize the algorithm standard header, rather than duplicate code functions.
Lastly, fffprocessor and multivolume has been split into CPP/H files.