Added error module framework
Added error module framework

Allows implementations to set the log level, and automatically logs to the console (using log, warn, error),
and logs to an internal array, which can be easily manipulated later (for dumping to file or uploading to server)

superlinkx/lithium-engine