It's ugly, but it makes a calendar now.
Added specialmonthoffset and related functionality.
Added some classes and stylable-stuff.
Now parses wikitext "variables" in arguments/attributes. Also added class "dcalendar-days-row" to regular calendar trs.
Now text links to Day Form edit instead of red links. There's some clean up still to do.