Refactoring.
More test cases.
Merge pull request #250 from okin/getmetarefactoring

Refactorings for nikola.utils.get_meta