if page object returns a string, take it as url to redirect.
if returns null or array, pass it to renderer (template).
created PageInterface to define returned value from Page objects.
rewrote conditions using PageInterface's constants.