added terracotta support to the sample app
added initial terracotta support to sample app