work on AMS interface, consistent naming, ams.h not included in petscviewer.h, no ifdefs

Hg-commit: 642571a1dc7109fdb7e5b0abb23bf260d10eb970
cleanup of AMS viewer, handle JSON-RPC multiple Comms

Hg-commit: 1c6c1b742ae96264dbd8aad2eb769b7fe76641f3
make KSP AMS monitor use default AMS communicator

Hg-commit: 5b351599f0c23f5160eb9e36bdd4992a2fb84e82
Merge branch 'master' into barry/ams
fixed calls to PetscObjectAMSTake/GrantAccess() to cast first argument to PetscObject
AMS fixed now goes into next
Merge branch 'barry/ams' into next
pulled next from bitbucket
Merge branch 'next' of bitbucket.org:petsc/petsc into next