Preventing errors when adding a widget using the WP Customize

Fixed coding standards and used methods from WC_Widget for start and end the widget
Merge branch 'master' of github.com:woothemes/woocommerce