Added a second tab, called patterns
Moved everything done in MainActivity to FragmentHomeTab.java, so now
everything is done within a tab and only control of tabs is done within
MainActivity