resolves #95, resolves #96, fixes #98, fixes #99;

lots of bugfixes and improvements to the entry box;
changes the tab index of the entry box to 0, so gains focus first;
adds logic to smartly focus the box depending on where the last focused element was;