Fix nFields calculation

As pointed out by user umuff71 on the TMC forum, nFields was calculated
incorrectly. I frankly wonder how this ever worked before.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Store the vehicles information in the database

This way we can later access this from the visualization tool without having to
query the API again.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Correctly detect battery capacity in visualize.js

With the previous commit we can now parse the option_codes and determine the
correct battery capacity (and therefore remove the ugly hack that hard coded
the capacity to 60kWh).

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Merge pull request #12 from dirkhh/moreCleanup

More cleanup. Fix for nFields.