Add Apache License Headers

This adds the Apache license headers to all source files. It also adds a first pass at the LICENSE and NOTICE files.

No functional changes.