Fix query examples on Readme.md and MacOSx install tip for MAMP

queries needed double \ to escape. The error may have been due to
markdown's escaping \\ into \.
also added NOT NULL condition to reduce possible confusion that may
cause users to think there is an error in the library.
without CONVERT, PREG_REPLACE returns a binary result, Mysql Workbench
displays as if the results are empty, which is highly confusing.
added doc files
fixed warnings for some c printfs
*	modified:   Makefile.am
*	modified:   configure.ac
*	modified:   doc/Makefile.am
*	new file:   doc/index.php.in
*	new file:   doc/mainpage.c
*	modified:   ghfcns.c
*	modified:   ghfcns.h
Merge branch 'master' of https://github.com/serkanserttop/lib_mysqludf_preg into dev-1.2
Merge branch 'raw-dev-1.1.2' into dev-1.2