Updated widget managment/insertion to handle module and layout widgets

Luis--

Here are my updates for https://www.assembla.com/spaces/contentbox/support/tickets/235-module-widget-support#/activity/ticket:

Let me know your thoughts when you've had a chance to review--thanks!