Added request handling. Backend is still missing