Implemented first step of new "elm-get publish" workflow

Function publishStep1 implements first step of new publishing process according to corresponding RFC.

Also, removed parts of old code which is no longer useful.