lots of changes
Completed index page
Appropiately respond to (still not implemented) POST requests
Fixed header sending and resource path determining, added logs, improved reaction to file reading errors
Added correct logging methods to log function, improved dealing with errors and error logging, added module "errno"