Convert Static Time Type to Custom List

The original idea was to create a individual table for the time types
like ticket status but have opted for using the already working Custom
Lists.

Have updated the patch file to include most required SQL changes.

Added a new function to class.list.php to retrieve list types
information.

Updated ticket-view.inc.php to use dynamic lists.
Thread time and type

Added additional banner at the top of each threat to contain the time
and type per thread update.

Later this needs additional logic to not include this information from
clients as they will not allocate time.
Client View

Have added ticket total time to the client side view and corrected the
class.thread.php types to float and int to match the database.