Add Apache licence to all files which did not have it
@raaij This should close the longstanding matter of updating the license to Apache and supersedes !791 (closed)
I've fixed the odd weird/bad formatting along the way of doing this. The original date ranges for the copyright included in each file have been preserved.