Implementation of nested routing

Implementation of angular-ui-router; json handling though promises