index.jinja2 and edit.jinja2 now share the same macros

The render_memory_wrapper macro from the index page had one more parameter, so updated the macros.jinja2 template.

The same macro for render_memory_wrapper() is now used by both the "edit.jinj2" and "index.jinja2" templates and is in the "includes/macros.jinja2" file.

Also fixed the top right input control (or select) control for all of the modals (since switching to stock Bootstrap from Bower).  The negative margin in each of the dialogs controls was not needed for stock Bootstrap and were only breaking the dialog, removing these fixes the dialogs.