Added global variable to control the treaty header formatting when inline and modal
Added  and  as globals
Changed template display for treaty
Changed the way template names are computed to be more flexible
Made the heder of the treaty reusable and moved to a separate template
Added template for treaty texT