Saving Options improvements and fixes

* Instead of doing an IF ELSE depending on user's message settings
existence in the database use ON DUPLICATE KEY UPDATE in the INSERT
query
* Moved the saving options action at the top since there is no need to
include other files before these actions are performed
* Fixed no isset() check on checkboxes
* Fixed the merging of messages options array to the $info array