Feature/optimizations

This ticket introduces quite a few optimizations, based on @Ocramius feedback.

Closes #1
Closes #2
Closed #3
Closes #4
Closes #5
Closes #6
Closed #7