Converted to new object oriented pattern (Constructor+Prototype pattern)

Added LithiumEngine namespace (declared in engine.js)

Must now load engine.js before other components.