Noise: Automatically transform noise maps if needed
NodeResolver: Fix cancelNode and cancelNodeList
Clean up Noise macros
Fix undeclared globals in functions and shorten lines in misc_helpers.lua.
Settings: Sanitize value for multiline terminator tokens
Settings: Fail on invalid sequence and throw exception for LuaSettings
Revert "Adjust the values of dirs1 and dirs2 so that rotate_and_place orients textures correctly"

This reverts commit 9878e8de4fdf232ebb77b396766c339786c01218.

See: https://github.com/minetest/minetest/issues/1939 and IRC log for discussion
Add support for NoiseParams in minetest.get_perlin() and add docs on NoiseParams to lua_api.txt