Added proper copyright headers & style corrections

This should have been done a long time ago. Replaced the awkward “by X
person” headers with real GPL compliant ones.

Style updates include changing tabs to spaces (4) and removing useless
and sometimes problematic closing PHP tags.

Also added a CREDITS file to log our past and current contributors.
Added Mac and Windows gitignore entries