Architectural change: remove master, instead use MySQL as task queue.

Each monitoring server runs one or more monitor.php instances. monitor.php continuously loops at the database to check if there are any checks which need immediate execution. We use a MySQL-based locking system to prevent multiple instances from interacting with a check at the same time; to handle monitoring node failures, locks timeout after a certain interval.