Add assertion in ServerLog::Printf()
Change type of some core functions from void to int

A negative return value indicates an error, anything other means success.
Fix redundant method names
Remove redundant namespace qualifiers