Added main functions to beat and bleed. Added certificate generating script that for now takes the easy way out and uses the SSL standard library module.