Using regular expressions to hack our way towards AMDfication

And tweaks to our code styles
Maybe put some emphasis on _define blocks_, something like “`define()` blocks”? I had to stop a bit to understand what this meant.