Page permissions.

- Added isPageValid check

- changed controller to accept a data object.

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

                              ]
                            }}
Page permissions.

- Added isPageValid check

- changed controller to accept a data object.

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

                              ]
                            }}
Page permissions.
Merge pull request #209 from bjanish/sandbox

Page permissions
Merge remote-tracking branch 'upstream/master'