Detect parent theme

These pull requests adds passive detection for parent themes (see issue #369).

@erwanlr, @ethicalhack3r Please take a look at it and test it before merging. Will add new rspecs later on.