adds flexibility to views location

This PR adds the possibility of using the extract functions inside views that aren't in the "app/views" directory, but are still following the Rails conventions (e.g "app/themes/base/views").

From the tests made, everything seems ok.