aditions to view service with promises and changes to directive.

Started on ideas for advanced route matching.