I spent over half hr reading all posts from page one shen i looked into this and many were saying they had problems with suppliers sending wrong motors. Thats why my previous post i out a link to a motor as it came as it should. Also there are many threads on these pages for the cogs and chains, some are old links but it shows you what you need.
It also answers your question how they wired it up. Some use the battery they have and some also connect to wireless key fobs.
Me, i dont often need to move van or reel it all in and so i have one wire permanent to my leisure battery to my pump and then i simply touch other wire on, but i have them in close proximity.