Set shebang to env and add strict/warnings to all cgi and bin scripts

closes #156
Change mime headers for cert download/install

should fix #193
Initial version of optimized mysql schema
Fix race condition in workflow factory, make xml config optional
Enable url path based realm selection, closes #246