Compact UPS with integrated power storage