Cleaned up some compilation issues.  Fixed feature detection (sort of).
Stripped out more unused members of the main activity.
Fixed null pointer issues.
Used pyrdown for minor optimization.