Publish: Started implementing automatic entry point detection

--HG--
extra : amend_source : 9f71667ee1754fbbffb5a950d84be34e6e46a7ba