Factor out sidebar entry construction
This makes it possible to reuse this logic in other modules as well,
preventing code duplication. While at it, move additional_sidebar
merging before the other entries (additional entries should go first,
since the other entries are mostly dev-only etc).
Patch by: Sverre Rabbelier
A list of bugs is available in the Google App Engine SDK project on Google Code.
Please visit http://code.google.com/p/googleappengine for more details.