Rework HTMLActivity to not inherit from Activity

This will make the activity use less memory and start faster.