Adds Ruby style classical inheritance

Sets up a constructor function to act like a real class.
`class Bar < Foo` will also inherit from Foo constructor.
This commit does not include the code needed to run, this
gets prepended to file.