#406 #408

#406
- FacebookFragment: added code which disables send button for private
photo until share token is retrieved to the init method
- FacebookFragment: chanded sharePhoto method declaration. Now it
doesn't need context. Also added sharePhoto method variation with
appendToken parameter
- FacebookFragment.FBLoadingControl: added loading control for the token
retrieval operation.
- FacebookFragment.ShowCurrentlyLoggedInUserTask: replaced
context.getString with context independent Commonutils.getStringResourc
in the onSuccessPostExecute method
- HomeFragment: added private photo sharing confirmation to each share
option in the onContextItemSelected method
- HomeFragment: added confirmPrivatePhotoSharingAndRun method
- HomeFragment.NewestPhotoAdapter: removed restriction to do not share
private photos from the getView method
- PhotoDetailsActivity.PhotoDetailsUiFragment: removed restriction to
share private photos from onOptionsItemSelected method
- PhotoDetailsActivity.PhotoDetailsUiFragment: added private photo
sharing confirmation to each share option in the onOptionsItemSelected
method
- PhotoDetailsActivity.PhotoDetailsUiFragment: added loading control
parameter to the ShareUtils.shareViaEMail method call in the
shareActivePhotoViaEMail method
- PhotoDetailsActivity.PhotoDetailsUiFragment: added
confirmPrivatePhotoSharingAndRun method
- TwitterFragment: addd additional instance saving variables: photo and
textModified
- TwitterFragment: added text changed listener to the messageEt which
adjusts textModified variable
- TwitterFragment: added code which disables send button for private
photo until share token is retrieved to the init method
- TwitterFragment.TweetLoadingControl: added loading control for the
token retrieval operation. 
- TwitterFragment: chanded getDefaultTweetMessagemethod declaration. Now
it doesn't need context. Also added getDefaultTweetMessage method
variation with appendToken parameter
- Photo: added shareToken field which can be saved to parcel
- Photo: moved some methods above parcelable section
- Token: added
- PhotoUtils: added new methods:
validateShareTokenExistsAsyncAndRunAsync,
validateShareTokenExistsAndReturn, getShareUrl
- PhotoUtils.RetrieveShareTokenTask: added
- TokenUtils: added
- ITroveboxApi: added new method createTokenForPhoto
- TokenResponse: added
- TroveboxApi: added createTokenForPhoto implementation
- TroveboxResponse.RequestType: added CREATE_PHOTO_TOKEN enum constant
- UploaderService: changed some method call because they changed
signature
- ShareUtils: added new method confirmPrivatePhotoSharingAndRun
- ShareUtils: changed signature and internals of shareViaEMail method.
Now it retrieves share token for private photos before sending share
intent
- ImageFlowUtils: changed import declaration for LinearLayout to the one
from HE library
- res/layout/fragment_facebook.xml, res/layout/fragment_twitter.xml:
formatted and added progressbar for the token loading operation. Also
added hide keyboard at startup hack
- res/values/strings.xml, res/values-ru/strings.xml: added some new
string constants related to private photo sharing

Test
- TokenTest: added
- TroveboxApiTest: added new methods testCreateTokenForPhoto and
createTestFileForUpload
- res/raw/json_token.xml: added

#408
- PhotoDetailsActivity.PhotoDetailsUiFragment.PhotoDetailPagerAdapter:
added isAdded validation before setting imageView bitmap to null in the
destroyItem method