move facebook api to lib/ and add phpmailer