Added MySQL support, PHP Daemon and some minor fixes, cleanups...