Tiny steps towards template rendering

- split imui.h to .h and .c
- fixed number of issues layout calculation and padding
- added license
- added credit where it's due