Added sorting and pagination for devices alongwith ability to fectch via type and serial number