add install_method, version attributes and behavior

Switch behaviors between source install from git vs pip package install.
Enable setting :version for both package and source.

Docs updated.