Move apply_blur() to ass_bitmap.c

Put all code into one place, which makes it easier to follow.
Check for another overflow in blur code
Use stdbool.h in another place

Also fix that ass_synth_init() could deref NULL.