Respect User.is_active in user view and api auth.
Add system setting for temperature units.

Closes #71.
Delete dead code.