No module actions in production if not connected.

Hide the module activate/deactivate and configure options on the module modals when not in dev mode and the user is not connected.
Merge pull request #822 from Automattic/disable-module-actions-when-not-connected

No module actions in production if not connected.