Belatedly update coding style.
uimenu: bugfixes and additional helper functions
advanced_inv: remembers sorting and target setting across saves
uistate: saves persistent data to save/uistate.json
string_input_popup: line editing via arrows, optional persistent history backbuffer
* new arguments (str title, int width, str default, str description, str history_id, int maxwidth)
* if unset, max_width = width, or 1024 if width is unset / 0
* ^U clears line
* up arrow pulls up history if history_id is provided
* support for larger block of descriptive text above input

list_items: history for filters persists across saves
uimenu.title sets minimum width
string_input_popup: hitting 'd' in history menu deletes history
uistate.save: only save <= 25 history entries per category
Fix manual merge error
item inscription: enable input history, split description of note
from actual note
inscribe: string_format && constage
Enable input history for graffiti
fix conflicts: Merge commit 'f9073b9' into readline_ish_and_more

Conflicts:
	game.cpp
	iuse.cpp
Adjusted smoke distribution function.
Fire adjustments.

- Reduced smoke by half.
- Flammable terrain no longer has to become an INFERNO just to convert the burning terrain to ashes.
- To grow past "small fire" stage, fire needs to be 1.) uncontained and 2.) either have a lot of fuel, or have nearby fires to help it grow
sync / fix conflicts
Ran map::process_fields_in_submap through astyle
Added 3-litre jar to the 3-litre jar of kompot recipe.
Autosave crashfix

caused by 'div by 0' exception
init submap to fix possible undefined behaviour

Related to nondissapearing electric clouds:
http://smf.cataclysmdda.com/index.php?topic=2658.0
Correct the USE_METRIC_WEIGHTS option's usage, fixes #2394.