[WP][TASK] (ticket10tsio): reorganize source code files
This is a legacy commit from before 2015-03-01. It may be incomplete as well as inconsistent. See COPYING.legacy and README.history for details. Several tasks are accomplished: - Add proper file headers with preample and copyright. - Give proper reference to ancestors. - Define namespaces. - Set proper include guards.