Removing the leaves check for stockpile acceptability.

That item type no longer exists in DF 0.40; such items will now always be considered properly stored by any stockpile they're on.
Moving trade screen search lines

Now that this screen uses the window's full height, the hard-coded line is no longer appropriate.
Repairing the log-region script

A typo was causing the gamelog to always omit the fortress group's untranslated name, while failing to fully prevent the error message caused by unloading the fortress.
Moving Mark/Unmark all in the trade screen

These are in a different plugin, but affect the same interface.
Switching Mark/Unmark all hotkeys to red

Following the policy described in the Readme.
Moving stockflow hotkeys to the bottom of the menu.

The hard-coded location is no longer appropriate for the new behavior of the linked stockpiles list.
Moving the autotrade hotkey to the bottom of the menu.

The hard-coded location is no longer appropriate for the new behavior of the linked stockpiles list.
Moving the stocks stockpile hotkey to the bottom of the menu.

The hard-coded location is no longer appropriate for the new behavior of the linked stockpiles list.
Switching new stockpile menu keys from green to red.
No longer overwrites stockpile links

The new lines added to the stockpile 'q' menu are usually drawn at the bottom, where the last few Give/Take links are written.  Now, they notice when they would overwrite one of those links, and move somewhere else.  The 'Done' line can now be overwritten by stockflow, but that hint isn't necessary for experienced players.
Removing an obsolete workaround
Speeding up the stockpile item count.

kr0pper reports two orders of magnitude speed improvement for check_pile() by using the map tile item cache.
Fix embark-tools render() behavior
Prioritizing search hooks on the trade screen.

The autotrade plugin has been intercepting the m/u/M/U keys if enabled after enabling the search plugin.  An explicit priority makes the search plugin always accept those keys while typing in a search line.
Update some stuff to 0.40.10
Merge pull request #298 from eswald/stockpile-lines

Stockpile lines
Merge pull request #296 from lethosor/embark-tools-render

embark-tools fix
Merge pull request #289 from eswald/trade-search

Moving trade screen search lines
Merge pull request #299 from eswald/stockflow-40

Stockflow Repairs
Nitpicking log-region

One line was improperly indented, and a variable name no longer made sense.