added constants for http api
implemented important functions to file manager