Overhaul of extension for compatibility with MW 1.22+

* moved parser function handlers into their own file
* removed dependancies on other extensions

Change-Id: I27ecffc50ab63126cf03021dae60fb78b403bbea