Page permissions.

- Added isPageValid check

- changed controller to accept a data object.

                            {"data":{
                              "siteId":"1",
                              "pageType": "n",
                              "pageName": "my-profile",
                              "roles": [

                              ]
                            }}