Added factories to REST and RPC services

I added the factories to REST and RPC services. 
I also checked the zfcampus/zf-apigility-skeleton#56 and the RPC service appears in the UI, everything seems to works fine.