Implemented logger system.

Simple logger system for debug, warning, error and fatal messages. Also includes an assertion function and debug breaks when run in debug mode.