cleaned up code, added post timeout

- made the file layout more go standard
- added a timeout to the post
- vendored 3rd party code