Added transactions and loans routes

Added the transaction and loan routes to the server.