Logging and Features

This is everything from v0.2.4-alpha including the logging functions.
logThis() can be accessed in all PHP parts of the system.