Performance optimizations and cleanup

- updated gitignore to ignore out/* files.
- refactored all occurrences of SharedPreferences.Editor....commit() to use apply() instead.
- implemented the ViewHolder pattern in NewsAdapter
- set the MainActivity view pager's off screen page limit to 2.