expose rest template for extending classes

close #60
Please add some javadoc with explanation why it's there (use case).