Extract int2bin function to own file

Eventually I plan to have this binclock library contain functions that
could be used for anything related to binary clocks while main.c will
just use them and manipulate the hardware to show the binary time using
this libary. This should make these re-usable for any other binary-clock
related project I (or anybody else) might want to do in the future.