Added rudimentary support for deployment as portlet (to Liferay).