Preference Fragment Implementation

But this is not working for some reason. So this is only a safe commit.