Update dependencies and add exclude option

This fixes #9.

@jharding: Sorry for not splitting this in smaller patches but there would be conflicts.

Also, I couldn't come up with a simple test case to add to the repo; feel free to add one later.