Here's a few ideas:
When returning/catching a Pokemon, the Pokeball converts all their matter into energy, which is then stored/sent to PC or lab.
As for how the Pokeballs are powered: Pokeballs seem to be powered all the time, no matter the circumstance. The Pokeball could have solar cells in the colored part of the ball, which is stored in a battery, or in the 4th Movie Crankball case, mechanical energy is converted into electrical energy.
As for how a Pokeball clips to a belt, bag, etc.: The Pokeball may be magnetic, and a magnet trainers put on their belts, bags, whatever, allows the Pokeballs to latch onto the trainer.
As for the inside of a Pokeball and how that works: I dunno...
But, I like Robot Chicken interpretaion of it, for those who know what I'm talking about.
Oh, and pocket dimensions are dimensions within dimensions. I believe...