Template service controller and fixes

Fixed problem with preview deployer consuming input stream.
Added getTextContent for descriptor service (was missing from api)