Redmine 16840: Split PASTA API functionality into a separate module.