all rest comunication moved to waylayclient library, ready for merge