Dry submenu addition
extract functionality to #prepare_submenu_pages
simplify #prepare_submenu_pages
Fix a bug, rename some variables, add some docs
refactor according to code review
apply code style
Added phpdoc
use single quotes instead of double quotes
Merge pull request #98 from Yoast/dry-submenu-addition

Dry submenu addition