added bodyParser and the addPost method will send json
fixed up the data parsing, fixed addPost