Rewrote parser, abandoned PHP DOM-API

Thanks to Ganon, we can stick with the current approach of using
Attributes for loading programs