Several improvements

- Modify MasterFragmentDelegate's getLayoutInflater() method to avoid NPE.
- Rename R.id.fragment_container -> R.id.internal_fragment_container.
- Some code style modifications.