Added 'resolve' attribute to router - acts as middleware to test URLs before templates & controllers are rendered