Refactored handlers, added cors, finished configuration checks and validation
Change port to 21324