Refactored the OpenOfficeTemplateHandler and moved certain functionality to utility classes.

Added Unit Tests for th OpenOfficeTemplateHandler