fixes #7309 / BZ 1093483 - Repo sync status - update UI cross-links and status based on dynflow task

The Sync Status page was recently updated to sync repositories
using dynflow tasks.  With this, all syncs whether they are
initiated by Sync Status, Product or Repository pages should
be executed through dynflow.

That said, the API (which is used for showing sync status on
the Products, Repositories, Content Views and Content View
Filter pages) is currently reporting the status using
pulp; however, that does not provide a true indication of
whether or not the sync process has completed successfully.

This commit will address 2 things:

1. Update the API to return the 'last sync' information using the
   dynflow task (vs pulp). This information is then used for displaying
   sync time, status...etc.
2. Update the cross-linking for individual repositories on the various
   pages to go directly to the dynflow task versus sending the user to the
   sync status page.  This will allow the user to see
   any errors that may have occured without having to search for
   the repo once landing on Sync Status and then having to click
   again to get to the dynflow task.
fixes #7342 / BZ 1128469 - content view filter - improve behavior when clicking calendar icon

This is a minor change so that when user clicks anywhere on the calendar
icon, the calendar is opened.
fixes #7343 / BZ 1132576 - iso sync - fix issue where progress report not available yet

This is to address the issue where 'task_progress_details' returned
nil due to the pulp response not yet containing the progress report.
Fixes #6821/BZ1117636: fix link to content hosts on CV delete page.

The link to manage individual content hosts was incorrectly using
$state.href(). This commit fixes the usage of $state.href() when
constructing the content hosts link.

http://projects.theforeman.org/issues/6821
https://bugzilla.redhat.com/show_bug.cgi?id=1117636
Merge pull request #4638 from waldenraines/6821

Fixes #6821/BZ1117636: fix link to content hosts on CV delete page.
Fixes #6942,bz1122924 - subscription reindex

Reindex subscriptions as part of product creation and destruction.
Merge pull request #4639 from bbuckingham/issue-7343

fixes #7343 / BZ 1132576 - iso sync - fix issue where progress report not available yet
Merge pull request #4637 from bbuckingham/issue-7342

fixes #7342 / BZ 1128469 - content view filter - improve behavior when clicking calendar icon
Merge pull request #4627 from bbuckingham/issue-7309

fixes #7309 / BZ 1093483 - Repo sync status - update UI cross-links and status based on dynflow task
fixes #7360 / BZ 1120595 - UI: Product: fix Sync Now behavior

This commit addresses 2 small issues related to the 'Sync Now' button
on a the Product -> Details pane.  After the user clicks the button
and a response is received from the server:
1. switch the button back from 'Syncing...' to 'Sync Now'
2. display a notification to the user to indicate that the sync has
   been scheduled
Merge pull request #4640 from bbuckingham/issue-7360

fixes #7360 / BZ 1120595 - UI: Product: fix Sync Now behavior
Refs #7156 - Fixing a bunch of small rubocop items
Merge pull request #4643 from daviddavis/rubocop-low-hanging

Refs #7156 - Fixing a bunch of small rubocop items
Merge pull request #4532 from dustint-rh/subs_list_not_reindexing

Fixes #6942,bz1122924 - subscription reindex
refs #6370 - automatically associate OS's with templates
Fixes #6287: Remove V1 API entirely.

This commit removes the existence of the V1 API by moving some controllers
to pure V2 API controllers and removing other, unused API controllers
and their corresponding tests.
Merge pull request #4547 from stbenjam/6370

refs #6370 - automatically associate OS's with templates
Merge pull request #4630 from ehelms/fixes-6287

Fixes #6287: Remove V1 API entirely.
Fixes #3584: Enable all tests to be run.

During the enginification process, tests were turned on one by one
and in the process some were left out. This changes the test task
to run all tests in the spec/ and test/ directories and fixes
those that haven't been run since engification.