Jesus gives every believer the authority which comes from heaven and used on earth. When we use this authority, we are actually administering the things of heaven upon the earth.
Jesus' presence is the basis of this authority; He promised when only two or three are gathered in His name, He would be present.
To gather in His name means to be in touch with Him and agree with His plans and purpose and to act as He would act and ask as He would ask.
The 'whatever' and 'anything' when we pray means according to His will; so we can expect to receive.