More refactoring and cleanup

 On branch v_2_ecma6

	modified:   index.js
Inherit Promise state without creating a new promise

 On branch v_2_ecma6

	modified:   index.js
Update for legacy code.

 On branch v_2_ecma6

	modified:   index.js
	renamed:    test/test.js -> test/v1_logacy_test.js