Adds object literal inheritence

Abstracts old object literal logic. Adds an optional inherits
keyword to inherit from another object using __proto__