Automate Object\create_from_cursor

Instead of a manually maintained switch statement, it now checks the
cursor kind against the subclasses of Object and grabs the subclass
with a matching kind.
Add placeholders for constructors and destructors
Allow templates to include other templates

Had to switch from stevedonovan/Penlight to bungle/lua-resty-template
for handling templates.