User login + submission up/down votes complete

Submission up/down votes implemented using custom view with custom
drawable states.
Still need to work on dynamic layouts for logged in/logged out view.
Merge branch 'allen'
Merge branch 'Danny'
Some merge bugs fixed

- a layout file I was working on wasn’t committed
- subreddit list back button handled correctly
User login/logout + drawer menu layout change

Drawer menu consists of an expandable list view + a list view.
When the second list view (possibly list of subreddits) is expanded
beyond the vertical space of the drawer, we may need to enclose both
lists in a scrollview and handle touches manually. (using onTouch)
displaying submissions in a subreddit chosen
Merge branch 'master' into Danny
Fixed API 9 support and some layout changes

Running the app on API 10 crashed due to a layout file using an
attribute that exists only in API 11 and above. This was fixed by
creating a copy in values-v11 and removing the attribute in the
original file.

MainActivity now has drop down menu to change the default sort for
submissions.

Successive user login/logout doesn’t create a clean blank state and
seems to maintain some session information. This hasn’t been completely
fixed yet (sometimes user needs to completely close the app). This is
likely linked to the Apache HttpClient, but further investigation is
necessary.
Subreddit list side menu integration
Merge pull request #3 from sdoh55/allen

displaying submissions in a subreddit chosen
Submissions list sorting now works.
Merge branch 'Danny' + conflict fixes

The subreddit select and update code wasn’t working well with the
integration to the drawer menu and has been fixed.

- SubredditFragment now has a reference to
OnDrawerMenuInteractionListener which may need to be changed later if
we decide to display the SubredditFragment elsewhere.
SubmissionListFragment has been updated with a refresh(String
subredditName, SubmissionSort sort) method that clears the current
submissions list and refreshes with the selected subreddit and sort.
Subreddit search and ActionBar menu handling

-Subreddit search has been integrated into the drawer menu.
-ActionBar search button has been replaced with “search submissions”
(yet to be implemented)
-ActionBar menu changes on fragment interactions
-ActionBar search/Subreddit search hides keyboard upon losing focus (by
tapping outside or changing fragment)

TODO:
-Implement submissions search
-UI (colors/icons/etc)
Added "front page" as header on subreddit list
Fixed lower API support for subreddit search
Fixed login to use ssl + new colors and icons
Added fragment for self.reddit submissions

-added Markdown parser library (Boost) to parse the selftext. library
compiled with ndk-build; placed inside the jniLibs directory.
-SelfSubmissionFragment displays both the contents and comments
together, but still needs some clean up + organization.
-action bar navigation mode list changed to action bar menu item.

TODO:
-handle activity and fragment lifecycle methods (app crashes often when
‘home’ button is pressed while viewing certain fragments).
-Optimize the display of submission content + comments list.
Fragments now correctly restore instance state

-SubmissionsListFragment and CommentsListFragment now save the instance
state for restoration. Device orientation change won’t force fragment
to fetch objects again.
-Realized that fetching submissions sometimes returns more than the
requested number of submissions due to sticky posts. This has been
alleviated for now, but there is a high priority to optimize the list
of submissions and list of comments soon.

-Something I forgot to add to the previous commit: added a new
RestClient implementation using android-async-http library by loop. The
AsyncHttpClient uses the same internal HttpClient from apache’s http
library so code that has been written already (using lots of ugly
AsyncTasks) still work smoothly while new methods can be directly
implemented using the library’s built in async methods.

TODO:
-voting on the comments list view of a submission doesn’t visually
update the submission item in the submissions list view. the user’s
vote is successfully being applied to reddit, but the lack of a visual
cue may cause confusion for end users.
UI changes and stability fixes

-Clickable elements are completely separated in the submission list
view to minimize accidental presses.
-Listener interface for SubmissionAdapter is now implemented by
MainActivity
-Up/down vote indicators are now up to date between submission views
-Added indicator for visited submissions (doesn’t persist YET)
-SparseArray is used in place of HashMap for comments (this still needs
optimization)
subreddit search fix