Native notifications using WPCom Rest API

git-svn-id: http://ios.svn.wordpress.org/trunk@3780 7d847f7c-ffe1-4a24-85be-b788d016d96a
Moving notification settings into env vars
- can set app id and secret in .bash_rc
- well also look in ~/.wpcom_app_credentials
- adding the unread indicator

git-svn-id: http://ios.svn.wordpress.org/trunk@3781 7d847f7c-ffe1-4a24-85be-b788d016d96a
Core Data layer has been wired up and syncing now hits the local store

- Note model is now an NSManagedObject
- NotificationsViewController uses NSFetchedResultsController to display content
- Note parsing happens in the model layer
- TODO: posting notifications for unread count after each refresh
- TODO: background polling for new notifications
- TODO: message for loading state

git-svn-id: http://ios.svn.wordpress.org/trunk@3782 7d847f7c-ffe1-4a24-85be-b788d016d96a
Attempt to refresh after view has appeared

git-svn-id: http://ios.svn.wordpress.org/trunk@3783 7d847f7c-ffe1-4a24-85be-b788d016d96a
Escape the html entities in the notification view cell text.

git-svn-id: http://ios.svn.wordpress.org/trunk@3784 7d847f7c-ffe1-4a24-85be-b788d016d96a
Moving Note data syncing to note instance to allow for reuse

git-svn-id: http://ios.svn.wordpress.org/trunk@3785 7d847f7c-ffe1-4a24-85be-b788d016d96a
NotificationsVieController refreshes visible notes

- uses the WordPressComApi to refresh notes
- updates read state for the note in the table cell

git-svn-id: http://ios.svn.wordpress.org/trunk@3786 7d847f7c-ffe1-4a24-85be-b788d016d96a
Removing unused @class forwarding declaration

git-svn-id: http://ios.svn.wordpress.org/trunk@3787 7d847f7c-ffe1-4a24-85be-b788d016d96a
Using UIImageView+AFNetworking to load the image in the table cell
- cleaning up the model since it doesn't need to know about loading an image

git-svn-id: http://ios.svn.wordpress.org/trunk@3788 7d847f7c-ffe1-4a24-85be-b788d016d96a
Notifications: Infinite scroll for notifications list. Still working on a way to get list to refresh on iPad first time, since we only get 9 notifications each load.

git-svn-id: http://ios.svn.wordpress.org/trunk@3789 7d847f7c-ffe1-4a24-85be-b788d016d96a
We can bail early if we're asked to refresh an empty array of notes

git-svn-id: http://ios.svn.wordpress.org/trunk@3790 7d847f7c-ffe1-4a24-85be-b788d016d96a
Reload visible notes when scrolling has finished and there's no deceleration

git-svn-id: http://ios.svn.wordpress.org/trunk@3791 7d847f7c-ffe1-4a24-85be-b788d016d96a
When an unread note is scrolled onto the screen, refresh it's status

git-svn-id: http://ios.svn.wordpress.org/trunk@3792 7d847f7c-ffe1-4a24-85be-b788d016d96a
Adding a reblog icon.

git-svn-id: http://ios.svn.wordpress.org/trunk@3793 7d847f7c-ffe1-4a24-85be-b788d016d96a
Only display a note type icon if we have one

git-svn-id: http://ios.svn.wordpress.org/trunk@3794 7d847f7c-ffe1-4a24-85be-b788d016d96a
Adding methods to check for unseen and unread notifications

- posts a notification that there are unseen notifications
- when refreshing notes from detail view use the newest note as the
  since timestamp

git-svn-id: http://ios.svn.wordpress.org/trunk@3795 7d847f7c-ffe1-4a24-85be-b788d016d96a
Method to mark notes unread with REST api

git-svn-id: http://ios.svn.wordpress.org/trunk@3796 7d847f7c-ffe1-4a24-85be-b788d016d96a
Mark note as read when tapped

git-svn-id: http://ios.svn.wordpress.org/trunk@3797 7d847f7c-ffe1-4a24-85be-b788d016d96a
Need to check if we have a note and timetsamp before requesting

git-svn-id: http://ios.svn.wordpress.org/trunk@3798 7d847f7c-ffe1-4a24-85be-b788d016d96a
After NotificationsViewController refreshes the notes, update notifications/seen

Closes #1494

git-svn-id: http://ios.svn.wordpress.org/trunk@3799 7d847f7c-ffe1-4a24-85be-b788d016d96a