Added documentation and created licensed file for Go code

Moved itoa (from Go's log) to Go licensed file.
Optimizations to logging
Change of priorities / choice of formatting

Instead of a print priority, there is now a fatal priority. There are
also now different ways of formatting the log message, using the Println
or Printf formatting style.
Broke Format into smaller chunks.
Reduced scope of code copyrighted to Go's authors.