Relocate function metadata objects to right above the function they're
describing in order to make it easier to keep documentation up to date

Conflicts:
	libraries/rpc/rpc_server.cpp