Refactored the REST api, installed REST plugin from Dancer2