Here's my setup for time lapse/motion detection
A couple of holes drilled in the right places to mount the camera and a couple more for the power switch. Because of the size or length of my battery pack with a USB cable pluged in I had to hack the USB cable so it bends 90 degrees on the end that fits into the battery pack. If I did not do this I would not get the lid on.
Mostly done by other people, I use http://www.raspberrypi.org/archives/tag/time-lapse TimeLapse.py and http://www.raspberrypi.org/archives/tag/motion-detection MotionDetect.py. I've been trying to get the python programs to auto start and have followed several sets of instructions on the internet all with no luck. Will keep trying of course.