* improve 'source apiserver update --resource' to follow the common update semantics * add more tests and update based on comments * rebase