added timestamp param, added before/after requests
cleaned up a little bit
added basic authentication
improved authentication
improved authentication