Added the portlet preference sample

Added the sample to get/set portlet preferences
Updated the documentation

updated the how to use the samples section also added the documentation
for portlet preferences sample