Use WebApplicationException subclasses for making error responses.
Add Current Magnitude resource

+ Also some minor style cleanup on ImageRenderer
Remove unused file