Fix for 'Components' and 'Software' tabs not displaying their contents.

Also, reverted some changes introduced in #1057 + made some further cleaning related to spurious views.

Please note that file `src/ralph/util/details.py` is not new - it just contains leftovers from `src/ralph/util/pricing.py`, which are still needed by some parts of Ralph.