Reworked REST and added support for configs