Fix buffer overflow

Components in a menu are now allocated dynamically using realloc instead
of being fixed at 5 items. This fixes a bug where add_menu wasn't
checking the current size and also improves memory utilisation.
Bumped version number
Merge branch 'release-1.0.1' into develop