Refactor macro parameter substitution

Now macros can also include references to variables as `$(variable)$`
Add support for macro definitions
Add a class for missing tiddlers