Adding DISTINCT keyword to get_record_list and get_record_count record methods
Modifying transaction/semaphore system

The session now handles semaphores to ensure that transactions are
completed before a semaphore is acquired.
Fixing true/false mismatch in queue (affecting overriding quotas)
Adding uid to token attributes
Minor bug fixes to queue

- making sure that times are in HH:MM:SS format (was HH:MM)
- converting HOUR intervals to MINUTES to avoid rounding decimal numbers
Merge remote branch 'origin/release' into develop

Conflicts:
	api/database/queue.class.php