Use activity instead of dialog
Add icon to tabs
Extracted strings
Removed old TODOs
Fixed bug

(getActivity returns null until the fragment has been added to the layout, but getTitle will be called before)
Pass title from JavaScript