Open Sourcing under Apache License

I put the whole project available under the Apache 2 license. Hence, I
added header to all source files and a license file to the project.