Update autobuilder-ext.pl

- Moved email config to top
- Refresh of html pages automatically after 20sec (added to header)
- In main loop check for jobs before executing jobs (use case of when everything has completed and its waiting for a git commit)
- Added cleanup before mainloop for use case of restarting the script (guessing there is a better way to do this...)
-