Putting it under the pickguard would be simpler and more aesthetically pleasing. You only need to change the battery once a year or so.
Routing for a battery box will require a handheld router (Preferably a plunge router, but it is not necessary.), a pattern-follower bit, and two templates. One for the cavity, and one for the recess.