making a home surveillance camera with webcam, sd memory and programmable chip and power source?

Can you answer korr’s question about Surveillance?:

i was wondering if there are anything similar to what i am looking for?

i want to make a surveillance camera which takes shots and storing them into a sd memory card, and have it programmable to either do motion detection or something similar… along with a way of power source, either outlet or battery source.

i’m just trying to make it simple, without having to run a laptop, or pc that consumes way too much energy. suggestions?

Wireless Video Surveillance Camera