Aligning Objects

Hello,
I hope this is the right place for this question.
is there a way to align two objects according to two faces of them ( by selecting the two faces )?
One of the objects may not move or rotate. Like in the examples below.

1
2
3

There is an addon… http://vimeo.com/101168603 Allow me to ignore “by select 2 faces” part this time.

Thanks,

i’ve downloaded it. But is it free and how do I install it?

I’ve put it into the “Addons” folder and activated it in “User Preferences”.
But can anyone tell me were I can find a tutorial about simple aligner?