Add a FreeBSD License file and the corresponding headers

Add a FreeBSD (also known as Simplified BSD) license file to the project and the corresponding headers to the python (and some javasript) files.

http://en.wikipedia.org/wiki/BSD_licenses