Changes to Task class and updates for scripts

The Task class was completely rewritten because most of it was not being
used.  The new code is used to create queries for updating the status of
tasks and determining what data should be passed in (for name and link
URL) when creating a new task.