Refactored compile actions; fixed ximDoc parsing; added slugs to activities; added extra data to ximDoc activityTree.