Removed the if/else checking for the discard options as it was causing PHP warnings
Not using JS on the public side for anything so removing.
Fixed an issue with the wiget title. Moved widgets.php to views/ folder
Removed unnecessary code from widget
Added radio buttons for button type to widget
Added JavaScript to toggle widget options
Merging master to install-notice branch.