Add ag_app_message_dialog() to create multi-purpose message dialogs
Add error checking to several places
Merge pull request #25 from gergelypolonkai/error-checking

Add error checking to some ignored places