What is inspiration?

I’ve noticed a new mechanic in the 5th edition rules that stands out from the rest. It’s called Inspiration.

What is this, what is it good for and how should I as a DM grant it?

It looks like it’s simply a way to grant advantage for good role-playing? Is this what it’s meant for or does it have more meaning than this?