Backported DevGuide ch 7-10 to 6.1.x

This is ready for merging into 6.1.x. These changes are imported to Liferay.com.

@rbohl - Hope you'll enjoy showing off your handywork from Liferay.com. :+1: