Added getSections() method.

I found that is impossible to get template sections from a View object
so I made it possible. This is good expecially when AJAX comes into
play.