You mean custom Device Type Handlers, right? Not custom smartapps.
If so, the thread that @eric182 linked to should answer the question.
You might also find the following FAQ useful: