You can mount all the electrical in anything you want, screw it all to a wall if you wish. I prefer to have it housed to prevent water from getting on it as much as possible AND to prevent electrical shock.
I was hit once fooling around with my punkin controler over summer. It'll really get the old heart a beating.
This is what I will be using for a housing as most people should be able to find something similar fairly easy .
Mom dropped me off some grub in it but she ain't gettin it back.
Sorry Mom! and Thank you!
What have done here is trace out holes to be cut so that the timer and AC outlets will fit in there nice and snug.
The AC outlets have small retaining clips on them so if you cut it right they will snap right into place. You can cut the holes out using a utility knife or whatever you have handy. A Heated utility knife works well or you can use a spade bit and trim the corners out. For the timer a hole saw works excellent, I believe it is a 2.25 inch hole saw but don't quote me on that .