LRDOCS-1004 portlet prefs refactor

Hi Cody,
Please review these changes when you have some time. If you have any questions, let me know. When you're done reviewing or making any corrections, feel free to send to Rich.
Thanks!