updating time() function to return timestamp as a string

return timestamp as a string to avoid 401 unauthorized error

http://stackoverflow.com/questions/17296466/snaphack-library-issues-error-unauthorized-api-call/17903239#17903239