Added some type parameter declarations.
Made TaskSelector a service.
Some updates to task command-line spec.